package week4;

/**
 * Created by dell on 2017/3/18.
 */
public class Ocean1Submarine implements Ocean1Swimmer {
    private String name;
    public Ocean1Submarine(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    @Override
    public void swim() {
        System.out.printf("潜水艇 %s 潜行%n", name);
    }
}
